import request from '@/utils/http';

/**
 * 岗位列表
 * @param params
 * @returns
 */
export const getPostList = (params: any) => request.get('/post/list', params);

/**
 * 新增岗位
 * @param data
 * @returns
 */
export const addPost = (data: any) => request.post('/post', data);

/**
 * 修改岗位
 * @param data
 * @returns
 */
export const updatePost = (data: any) => request.put('/post', data);

/**
 * 删除岗位
 * @param postIds
 * @returns
 */
export const deletePosts = (postIds: any) => request.delete(`/post/${postIds}`);

/**
 * 岗位详情
 * @param postId
 * @returns
 */
export const getPostInfo = (postId: number) => request.get(`/post/${postId}`);
